﻿#include "mainwindow.h"
#include "mytitlebar.h"

#include <QApplication>

#pragma execution_character_set("utf-8")

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    a.setFont(QFont("Microsoft Yahei",10));     //字体设置
    //a.setWindowIcon(QIcon(":/main.ico"));     //logo设置

    MyTitleBar myTitleBar;
    myTitleBar.setLogoAndTitle(":/image/main.ico","自定义标题栏");

    MainWindow *mainWindow=new MainWindow;
    myTitleBar.setMainWidget(mainWindow);

    myTitleBar.show();
    //MainWindow w;
    //w.show();
    return a.exec();
}
